package ai.peanut.selfbase.common.enums;

/**
 * @ClassName ResultTypeEnum
 * @Description
 *
 * @author huangshengju
 * @date 2018年12月18日
 * @version 1.0
 */
public enum ResultTypeEnum {
    
    PARAM_VERIFY_ERROR(400,"参数校验未通过"),
    USER_UNLOGIN_ERROR(401,"用户未登陆"),
    NOT_THIS_ACCOUNT(402,"账户不存在"),
    FAILED(500,"哎呀，网络开小差了，请稍后重试"),
    UNAUTHORIZED_EXCEPTION(801,"无操作权限,如有问题请联系管理员!"),
    UNKNOWNSESSION_EXCEPTION(802,"由于长时间未操作，请刷新页面重新登陆!"),
    CODE_TIMEOUT(803,"验证码已失效，请刷新后重新输入"),
    CODE_ERROR(804,"验证码错误，请重新尝试"),


    UNKNOWNACCOUNT(1001,"账号不存在"),
    INCORRECTCREDENTIALS(1002,"密码错误"),
    LOCKEDACCOUNT(1003,"账号已锁定，请联系管理员"),
    AUTHENTICATIONEXCEPTION(1004,"登录失败，请稍后重新尝试"),
    DISABLEDACCOUNT(1005,"账号已删除，请联系管理员"),
    ID_NULL(1006,"参数ID为空"),
    PASSWORD_NOT_SAME(1006,"密码不一致")

   ;

    String message;

    int code;

    ResultTypeEnum() {
    }

    ResultTypeEnum(int code, String message) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public int getCode() {
        return code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
